# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=b4
pkgver=0.12.4
pkgrel=0
pkgdesc="Tool to help with email-based patch workflows"
url="https://b4.docs.kernel.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="py3-requests git git-email git-filter-repo py3-dnspython py3-patatt py3-dkimpy"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc $pkgname-doc"
source="https://git.kernel.org/pub/scm/utils/b4/b4.git/snapshot/b4-$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
14a745bab716902968dc24956dc1611b1a1debe09d7115b2c4ea584d3747b8f3d3242087816e0513fb60edc03dde45b9fd63bb508dee3f97c1d9c4b33bcc6e95  b4-0.12.4.tar.gz
"
